local ty_1v2_fc = fk.CreateSkill {
    name = "ty_1v2_fc&",
    tags = { Skill.Limited, },
}

Fk:loadTranslationTable {
    ["ty_1v2_fc&"] = "樊城",
    [":ty_1v2_fc&"] = "限定技，出牌阶段，你可以令你本局游戏【杀】或非【杀】造成的伤害+1。",

    ["ty_1v2_fc_slash"] = "杀",
    ["ty_1v2_fc_nslash"] = "非杀",
}

ty_1v2_fc:addEffect("active", {
    anim_type = "offensive",
    prompt = "你可以令你本局游戏【杀】或非【杀】造成的伤害+1！",
    card_num = 0,
    target_num = 0,
    card_filter = Util.FalseFunc,
    can_use = function(self, player)
        return player:usedSkillTimes(ty_1v2_fc.name, Player.HistoryGame) == 0
    end,
    on_use = function(self, room, effect)
        local player = effect.from
        local choices = { "ty_1v2_fc_slash", "ty_1v2_fc_nslash" }
        local choice = room:askToChoice(player, {
            choices = choices,
            skill_name = ty_1v2_fc.name,
            prompt = "樊城：请选择伤害+1的项"
        })
        room:setPlayerMark(player, "ty_1v2_fc", choice)
    end,
})

ty_1v2_fc:addEffect(fk.DamageCaused, {
    is_delay_effect = true,
    mute = true,
    can_trigger = function(self, event, target, player, data)
        if target == player and player:getMark("ty_1v2_fc") ~= 0 and data.to and data.to ~= player then
            if player:getMark("ty_1v2_fc") == "ty_1v2_fc_slash" then
                return data.card and data.card.trueName == "slash"
            elseif player:getMark("ty_1v2_fc") == "ty_1v2_fc_nslash" then
                return (data.card and data.card.trueName ~= "slash") or not data.card
            end
        end
    end,
    on_cost = Util.TrueFunc,
    on_use = function(self, event, target, player, data)
        data:changeDamage(1)
    end,
})
return ty_1v2_fc
